﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelectOptions.aspx.cs" Inherits="LHWebApp.SelectOptions" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>选择子系统</title>
    <script type="text/javascript" src="ext/adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="ext/ext-all.js"></script>
    <script type="text/javascript" src="ext/ext-lang-zh_CN.js"></script>

    <link rel="stylesheet" type="text/css" href="css/selectOptions.css" />
</head>
<body>
    <div id="container">
        <div class="select_box">
            <a href="javascript:;" class="select_btn" id="select_btn1">道路机扫作业</a>
            <a href="javascript:;" class="select_btn" id="select_btn2">道路人工作业</a>
            
            <a href="javascript:;" class="select_btn" id="select_btn3">垃圾作业</a>
            <a href="javascript:;" class="select_btn" id="select_btn6">公厕维保作业</a>
            <a href="javascript:;" class="select_btn" id="select_btn4">车务机务</a>

            <a href="javascript:;" class="select_btn" id="select_btn5">综合混合显示</a>
            
            
            <a href="" class="select_btn" id="logout">退出</a>
        </div>
    </div>

    <script type="text/javascript">
        var loginUsername = '<%=userInfo.loginUsername%>';
        var loginPassword = '<%=userInfo.loginPassword%>';
        var ClientNo = '<%=userInfo.ClientNo%>';
        document.getElementById('logout').onclick = function () {
//            Ext.MessageBox.confirm('系统提示', '你确定要注销吗?', function (btn) {
//                if (btn == 'yes') {
                    Ext.Ajax.request({
                        url: './Services/loginout.aspx',
                        success: function (request) {
                        },
                        failure: function () {
                            Ext.Msg.alert('注销失败!', '请重新尝试');
                        }
                    });
//                }
//            });

        }
        document.getElementById('select_btn2').onclick = function () {
            //            window.location = 'http://111.160.78.62:4449/cleaner?ClientNo=' + ClientNo;
            window.open('http://111.160.78.62:4449/cleaner?ClientNo=' + ClientNo);
        }
        document.getElementById('select_btn4').onclick = function () {
            //            window.location = 'http://111.160.78.62:4450/traffic?ClientNo=' + ClientNo;
            window.open('http://111.160.78.62:4450/traffic?ClientNo=' + ClientNo);
        }
        document.getElementById('select_btn1').onclick = function () {
            //            window.location = "main.aspx?currentService=1";
            window.open("main.aspx?currentService=1");
        }
        document.getElementById('select_btn3').onclick = function () {
            //            window.location = "main.aspx?currentService=3";
            window.open("main.aspx?currentService=3");
        }
        document.getElementById('select_btn5').onclick = function () {
            //            window.location = "main.aspx?currentService=5";
            window.open("main.aspx?currentService=5");
        }
        document.getElementById('select_btn6').onclick = function () {
            //            window.location = "main.aspx?currentService=6";
            window.open("main.aspx?currentService=6");
        }
    </script>
</body>
</html>

